﻿@model Ec_System.Models.Web.QrCodeData
@{
    Layout = null;
}
<script src="~/Scripts/jquery.qrcode.js"></script>
<script src="~/Scripts/qrcode.js"></script>


@*这里最好加一个二维码扫描和验证示意图*@
<div class="block clearfix">
    <div id="ECS_COMMENT">
        <div class="box_1">
            <div class="ur_here">
                <a href="http://localhost">首页</a> <code>&gt;</code> 二维码 <code>&gt;</code> <a href="/QrCode/Index">二维码查询结果</a>
            </div>
            <h3 class="h3_3"><span class="text">溯源二维码查看结果：</span><a href="/QRInfo/QRIntro/"> <font class="shop">二维码查询说明 </font></a>&nbsp;&nbsp;<a href="/QRInfo/QRPolicy/"><font class="shop">二维码政策解读</font></a></h3>
            <div class="boxCenterList clearfix" style="height:1%; padding:15px 0;">
                @if (Model.IsNull)
                {
                    @Model.ErrorMessage
                }
                else
                {
                    <ul class="comments" style="border:none; padding:0">
                        <li>

                            <div class="jianju">
                                <font class="f2">销售信息</font><font class="f3">订单号：@Model.OrderId &nbsp;&nbsp;&nbsp;&nbsp;订单明细号：@Model.OrderDetailId &nbsp;&nbsp;&nbsp;&nbsp; @*订单状态：@Model.ReturnMarkStr*@</font>

                                <p>经销商名称：@Model.VendorName</p>
                                <p>经销商编号：@Model.VendorNumber</p>
                                <p>联系人：@Model.LinkMan</p>
                                <p>联系电话：@Model.LinkPhoneNum</p>
                                <p>电子邮件：@Model.Email</p>
                                <p>通讯地址：@Model.Adress</p>
                                <p></p>
                                <p>科目编号：@Model.ItemNumber</p>
                                <p>科目名称：@Model.ItemName</p>
                                <p>商品标题：@Model.ProductName</p>
                                @if (Request.IsAuthenticated)
                                {
                                    <p>销售单价：@Model.UnitPrice</p>
                                }
                                else
                                {
                                    <p>销售单价：******</p>
                                }
                                <p>销售单位：@Model.Unit</p>
                                <p>购买数量：@Model.Count</p>
                                <p>购买时间：@Model.InDate</p>
                                <div class="blank"></div>
                                <div class="blank5"></div>

                            </div>
                            <div class="jianjuR">
                                <div id="qrcodeTable"></div>
                                <div>@Model.QRCode</div>
                            </div>
                            <script type="text/javascript">
                                        jQuery('#qrcodeTable').qrcode({
                                            render: "table",
                                            text: "/QRInfo/Index?qrcode=@Model.QRCode",
                                            width: "120",
                                            height: "120"
                                        });
                            </script>
                        </li>
                        <li>
                            <div class="jianju2">
                                <font class="f2">最近10次查询记录</font><font class="f3">已查询次数：@Model.RecordList.Count</font>
                                @foreach (var item in @Model.RecordList)
                                {
                                    <p>查询者IP：@item.IP 查询时间：@item.InDate</p>
                                }

                                <div class="blank"></div>
                                <div class="blank5"></div>
                            </div>
                        </li>
                    </ul>
                }
                <div class="blank5"></div>
            </div>
        </div>
        <div class="blank5"></div>
    </div>
</div>


